package com.ss.android.video.b;

import com.ss.ttvideoengine.log.VideoEventManager;
import com.ss.ttvideoengine.log.IVideoEventExecutor;

import org.json.JSONArray;

public final class VideoEventExecutor implements IVideoEventExecutor {
    private static VideoEventExecutor sInstance = new VideoEventExecutor();

    public static VideoEventExecutor getInstance() {
        return VideoEventExecutor.sInstance;
    }

    public final void execute() {
        JSONArray jsonArray = VideoEventManager.instance.popAllEvents();
        if (jsonArray != null && jsonArray.length() > 0) {
            new VideoPlay(jsonArray).start();
        }
    }
}

